<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div> -->

    {php}
    if($row['id']==1){
    $title= '团队有效总人数';
    }
    if($row['id']==2){
    $title= '直推初级经销商';
    }
    if($row['id']==3){
    $title= '直推中级经销商';
    }
    $month = Config('site.month_num')??0;
    {/php}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">升级:{$title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-direct_num" class="form-control" name="row[direct_num]" type="number"
                value="{$row.direct_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">升级:{:__('Team_ach')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-team_ach" class="form-control" step="0.01" name="row[team_ach]" type="number"
                value="{$row.team_ach|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Commission_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-commission_rate" class="form-control" step="0.01" name="row[commission_rate]" type="number"
                value="{$row.commission_rate|htmlentities}">
        </div>
    </div>
    {if $row['id']!=1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Reduce_rules')}:连续{$month}个月业绩不足</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reduce_rules" class="form-control" step="0.01" name="row[reduce_rules]" type="number"
                value="{$row.reduce_rules|htmlentities}">
        </div>
    </div>
    {/if}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>